<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label for="c-name" class="control-label col-xs-12 col-sm-2">中文名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="{$row.name}" />
        </div>
    </div>
    <div class="form-group">
        <label for="c-enname" class="control-label col-xs-12 col-sm-2">英文名称:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-enname" data-rule="required" class="form-control" name="row[enname]" type="text" value="{$row.enname}" />
        </div>
    </div>
    <div class="form-group">
        <label for="c-dir" class="control-label col-xs-12 col-sm-2">目录:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-dir" data-rule="" class="form-control" name="row[dir]" type="text" value="{$row.dir}" />
        </div>
    </div>
    <div class="form-group">
        <label for="c-parentList" class="control-label col-xs-12 col-sm-2">上级模型:</label>
        <div class="col-xs-12 col-sm-8">
          <select id="c-parentList" data-rule="" class="form-control selectpicker" name="row[pid]">
              <option value="">请选择</option>
              {volist name="parentList" id="vo" key="k"}
                  
                  <option value="{$vo.itemid}" {if $vo.itemid == $row.pid}selected="selected"{/if}>{$vo.name}</option>
                  {if $vo.pid eq ''}{/if}
              {/volist}
          </select>
        </div>
    </div>

    <!-- <div class="form-group">
        <label for="c-catid" class="control-label col-xs-12 col-sm-2">类别:</label>
        <div class="col-xs-12 col-sm-8 line3">
            <div id="jscategoryselect22" class="selects3" data-pid="0">
                <a class="arrow"><img alt="arrowbottom" src="/assets/img/arrow_bottom.png" /></a>
                <span class='selected3'>{row.category.name}</span>
                <input type="hidden" id="catid" name="row[catid]" value="{row.catid}" />
            </div>
        </div>
    </div> -->
    <div class="form-group">
        <label for="c-intro" class="control-label col-xs-12 col-sm-2">简介:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea name="row[intro]" id="c-intro" cols="60" rows="5" class="form-control summernote">{$row.intro}</textarea>
        </div>
    </div>
    <div class="form-group">
        <label for="c-isdate" class="control-label col-xs-12 col-sm-2">是否包含日期字段:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="checkbox">
            <label for="row[isdate]-normal">
                <input id="row[isdate]-normal" name="row[isdate]" type="checkbox" value="1" {if 1 eq $row.isdate}checked="checked"{/if} /> 包含（如果选择，那么表里面会有两个字段，createtime,updatetime）
            </label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="c-iscatid" class="control-label col-xs-12 col-sm-2">是否包含类别字段:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="checkbox">
            <label for="row[iscatid]-normal">
                <input id="row[iscatid]-normal" name="row[iscatid]" type="checkbox" value="1" {if 1 eq $row.iscatid}checked="checked"{/if}/> 包含（如果选择，那么表里面会有类别字段，catid）
            </label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="c-ishit" class="control-label col-xs-12 col-sm-2">是否包含点击字段:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="checkbox">
            <label for="row[ishit]-normal">
                <input id="row[ishit]-normal" name="row[ishit]" type="checkbox" value="1" {if 1 eq $row.ishit}checked="checked"{/if} /> 包含（如果选择，那么表里面会有字段，hits）
            </label>
            </div>
        </div>
    </div>

    <div class="form-group">
        <label for="c-isip" class="control-label col-xs-12 col-sm-2">是否包含IP字段:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="checkbox">
            <label for="row[isip]-normal">
                <input id="row[isip]-normal" name="row[isip]" type="checkbox" value="1" {if 1 eq $row.isip}checked="checked"{/if}/> 包含（如果选择，那么表里面会有字段，ip）
            </label>
            </div>
        </div>
    </div>
    
    <div class="form-group">
        <label for="c-issort" class="control-label col-xs-12 col-sm-2">是否包含顺序:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="checkbox">
            <label for="row[issort]-normal">
                <input id="row[issort]-normal" name="row[issort]" type="checkbox" value="1" {if 1 eq $row.issort}checked="checked"{/if}/> 包含（如果选择，那么表里面会有字段，listorder）
            </label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="c-iszan" class="control-label col-xs-12 col-sm-2">是否包含点赞:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="checkbox">
            <label for="row[iszan]-normal">
                <input id="row[iszan]-normal" name="row[iszan]" type="checkbox" value="1" {if 1 eq $row.iszan}checked="checked"{/if}/> 包含（如果选择，那么表里面会有字段，zans）
            </label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="c-iscomment" class="control-label col-xs-12 col-sm-2">是否包含评论:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="checkbox">
            <label for="row[iscomment]-normal">
                <input id="row[iscomment]-normal" name="row[iscomment]" type="checkbox" value="1" {if 1 eq $row.iscomment}checked="checked"{/if} /> 包含（如果选择，那么表里面会有字段，comments）
            </label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="c-iscontent" class="control-label col-xs-12 col-sm-2">是否包含内容:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="checkbox">
            <label for="row[iscontent]-normal">
                <input id="row[iscontent]-normal" name="row[iscontent]" type="checkbox" value="1" {if 1 eq $row.iscontent}checked="checked"{/if}/> 包含（如果选择，那么表里面会有字段，content）
            </label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="c-islat" class="control-label col-xs-12 col-sm-2">是否包含地理坐标字段:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="checkbox">
            <label for="row[islat]-normal">
                <input id="row[islat]-normal" name="row[islat]" type="checkbox" value="1" {if 1 eq $row.islat}checked="checked"{/if} /> 包含（如果选择，那么表里面会有两个字段，纬度lat和经度lng）
            </label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="c-isadmin" class="control-label col-xs-12 col-sm-2">是否包含管理员:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio" for="isadmin">
                <input id="row[isadmin]-normal" name="row[isadmin]" type="checkbox" value="1" {if 1 eq $row.isadmin}checked="checked"{/if}  />
                包含（如果选择，那么表里面会有adminid字段，记录操作的管理员）
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="c-ismember" class="control-label col-xs-12 col-sm-2">是否包含会员:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio" for="ismember">
                <input id="row[ismember]-normal" name="row[ismember]" type="checkbox" value="1" {if 1 eq $row.ismember}checked="checked"{/if} />
                包含（如果选择，那么表里面会有memberid字段，记录所属的会员）
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="c-iscache" class="control-label col-xs-12 col-sm-2">是否缓存:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio" for="iscache">
                <input id="row[iscache]-normal" name="row[iscache]" type="checkbox" value="1" {if 1 eq $row.iscache}checked="checked"{/if} />
                包含（如果选择，那么所有对于实体的编辑，都录入缓存）
            </div>
        </div>
    </div>
    <!-- 
    <div class="form-group">
        <label for="c-iscache" class="control-label col-xs-12 col-sm-2">是否缓存:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio" for="iscache">
                <input id="row[iscache]-normal" name="row[iscache]" type="checkbox" value="1"  />
            </div>
        </div>
    </div> 
    -->
    <div class="form-group">
        <label for="c-isevent" class="control-label col-xs-12 col-sm-2">是否定义事件:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="checkbox">
            <label for="row[isevent]-normal">
                <input id="row[isevent]-normal" name="row[isevent]" type="checkbox" value="1" {if 1 eq $row.isevent}checked="checked"{/if}/> 包含（如果选择，那么模型类里面会包含事件的定义，模型的增删改方法全部不继承父类）
            </label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="c-isajax" class="control-label col-xs-12 col-sm-2">是否包含Ajax请求:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="checkbox">
            <label for="row[isajax]-normal">
                <input id="row[isajax]-normal" name="row[isajax]" type="checkbox" value="1" {if 1 eq $row.isajax}checked="checked"{/if} /> 包含（如果选择，那么控制器里面会有返回json的方法）
            </label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="c-ismany" class="control-label col-xs-12 col-sm-2">是否多对多关联模型:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="checkbox">
                <label for="row[ismany]-normal">
                    <input id="row[ismany]-normal" name="row[ismany]" type="checkbox" value="1" {if 1 eq $row.ismany}checked="checked"{/if}  />
                </label>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8 text-center">

            <button type="button" class="btn btn-primary" id="msql">生成数据表</button>&nbsp;&nbsp;
            <button type="button" class="btn btn-primary" id="mcc">生成列缓存</button>&nbsp;&nbsp;
            <button type="button" class="btn btn-primary" data-id="{$row.itemid}" id="mcm">生成模型控制器</button>
            <!--
            &nbsp;&nbsp;
            <button type="button" class="btn btn-primary" id="mccon">生成Controller</button>
            -->
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8 text-center">
            <button type="button" class="btn btn-primary" id="mbt">生成编辑模板</button>&nbsp;&nbsp;
            <button type="button" class="btn btn-primary" id="mlt">生成列表模板</button>&nbsp;&nbsp;
            <button type="button" class="btn btn-primary" id="mjs">生成脚本</button>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8 text-center">
            <button type="submit" class="btn btn-success btn-embossed">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
            <button type="button" class="btn btn-default returnback">返回</button>
            <button type="button" class="btn btn-default" id="mopen">开启</button>
            <button type="button" class="btn btn-default" id="mclose">关闭</button>
        </div>
    </div>
</form>
